
import Vue from 'vue';
import App from './App.vue';

Vue.config.productionTip = false;
Vue.filter('add$', (value) => {
  return "$" + value;
})
Vue.directive('red', {
  bind(el) {
    el.style.background = 'skyblue'
    console.log('bind');
  },
  inserted() {
    console.log('inserted');
  },
  update() {
    console.log('update')
  },
  componentUpdated() {
    console.log('componentUpdated')
  },
  unbind() {
    console.log("unbind")
  }
}) 

new Vue({
  render: h => h(App),
  
}).$mount('#app')
